import { createStore } from 'vuex'

interface State {
    userName: string,
    taskList: any[]
}

export default createStore({
    state:{
        userName: 'yhy',
        taskList:[]
    },
    mutations:{
        createTask(state:any,newTask:string){
            state.taskList.push(newTask)
        }
    }
})